package bold.deposit.useful.spring;

import org.junit.Test;
import org.springframework.core.io.support.ResourcePropertySource;

import java.io.IOException;

public class Util {

    /**
     * ResourcePropertySource
     */
    @Test
    public  void  test1() throws IOException {

        String file ="file:L:\\public\\bold\\deposit\\src\\main\\resources\\prop.properties";
        String file2 ="file:L:/public/bold/deposit/src/main/resources/prop.properties";

        ResourcePropertySource source=  new ResourcePropertySource(file2);
        System.out.println(source.getProperty("key2"));
        System.out.println(source.getProperty("key2"));
    }
}
